import { createApp } from 'vue'

import 'normalize.css/normalize.css'

// 需要全局引入element-plus样式
//import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/base.css'
import 'element-plus/theme-chalk/el-card.css'
import 'element-plus/theme-chalk/el-form.css'
import 'element-plus/theme-chalk/el-form-item.css'
import 'element-plus/theme-chalk/el-input.css'
import 'element-plus/theme-chalk/el-button.css'

import 'element-plus/theme-chalk/el-descriptions-item.css'
import 'element-plus/theme-chalk/el-descriptions.css'

import './style.css'

import App from './App.vue'
import { setupElement } from '@/plugins'

import router from '@/router' // 路由 2

async function bootstrap() {
  const app = createApp(App)
  // 注册全局常用的Element Plus 组件
  setupElement(app)
  app.use(router).mount('#app', true);
}

void bootstrap();
